<%@ page import="seismosurfer.data.UserData" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="description" content="#" />
<meta name="keywords" content="#" />
<meta name="author" content="#" />

<link rel="stylesheet" type="text/css" href="seismo.css" media="screen" />

<title>Seismo-Surfer -- A tool for collecting, querying and mining seismic data
</title>

</head>

<body onload="${load}" onunload="${unload}">

<div class="page_wrap clearfix">
<div class="top"></div>

  <div id="header"> <!-- BeginHeader -->

	<div class="logo">
		<a href="main"><img src="img/seismo-logo.png" alt="Seismo-Surfer logo" width="150" height="65" border="0" /></a>
	</div>

		<div class="spider">
			<!-- <h3>Seismo-Surfer: A portal for earthquakes</h3> -->
			<!-- <p>A tool for integrating, visualizing and analyzing seismic data</p> -->

			<div class="user">

				<br/><h3>Welcome<% UserData u = (UserData)session.getAttribute("user");
				   String userName = u.getUserName();
				   if (userName.equals("guest")){
				 %>, 
				<% } else { %>
					back, 
				<% } %>	
					${user.nickName}.</h3> <br/>
					${usersCount} ${(usersCount > 1) ? "users" : "user"} currently logged in.
			</div>
			
		</div>

	<%@ include file="navbar.jsp" %>

 </div> <!-- EndHeader -->

	<% if (userName.equals("guest")){ %>
		   <%@ include file="login_form.jsp" %>
	<% } else { %>
		<%@ include file="logout_form.jsp" %>
	<% } %>	

<div class="clr">&nbsp;</div>


